Matt Watson [Tue, 12 Jan 2016 02:40:53 +0000 (18:40 -0800)]
widget: remove queue_resize in set_sensitive
Calling gtk_widget_propagate_state is enough to queue a resize if
needed
See
da7a4089fe82981d1412aaa295e76d47a81ad6df
Rui Matos [Fri, 15 Jan 2016 17:35:25 +0000 (18:35 +0100)]
wayland: Fix an endless loop
Lapo Calamandrei [Fri, 15 Jan 2016 17:33:38 +0000 (18:33 +0100)]
Adwaita: remove messagedialog label squashing hack
since Matthias fixed this properly.
Matthias Clasen [Fri, 15 Jan 2016 16:58:51 +0000 (11:58 -0500)]
message dialog: Prevent empty title from being shown
We don't want to grow the titlebar by showing an empty label.
Lapo Calamandrei [Fri, 15 Jan 2016 16:56:49 +0000 (17:56 +0100)]
Adwaita: some dialog love
addresses https://bugzilla.gnome.org/show_bug.cgi?id=760525
Matthias Clasen [Fri, 15 Jan 2016 15:29:20 +0000 (10:29 -0500)]
expander: Destroy gadgets after child widgets
With child widgets now being sorted into box gadgets, bad things
happen if those gadgets disappear prematurely.
Benjamin Otte [Fri, 15 Jan 2016 11:58:14 +0000 (12:58 +0100)]
notebook: Destroy gadgets after chaining up
While chaining up, we might still call into the notebook code. And that
code expects the gadgets to be there.
https://bugzilla.gnome.org/show_bug.cgi?id=760640
Matthias Clasen [Fri, 15 Jan 2016 14:41:44 +0000 (09:41 -0500)]
expander: Convert to use box gadgets
Use a vertical box gadget for the overall expander, and a
horizontal one for the title row. This lets us get rid of
all the custom allocation code here.
Matthias Clasen [Fri, 15 Jan 2016 13:35:39 +0000 (08:35 -0500)]
expander: Deprecate spacing property
The same can be achieved with margins on the child, and
the spacing property gets in the way of converting the
expander to use box gadgets.
Matthias Clasen [Fri, 15 Jan 2016 11:47:31 +0000 (06:47 -0500)]
box gadget: Implement cross-axis alignment
So far, the box gadget is always allocating all children the
full size in the cross axis. This behavior corresponds to the
align-items: stretch behavior in
https://www.w3.org/TR/css-flexbox-1/#align-items-property
This commit implements the other modes described there.
While widgets have halign/valign properties that we can use for
this, the API for inserting gadgets has to change to take an
extra align parameter. All callers have been updated to pass
GTK_ALIGN_FILL, since that corresponds to the previous behavior.
https://bugzilla.gnome.org/show_bug.cgi?id=760668
Piotr Drąg [Fri, 15 Jan 2016 14:18:32 +0000 (15:18 +0100)]
Updated POTFILES.skip
Ignacio Casal Quinteiro [Fri, 15 Jan 2016 19:45:45 +0000 (11:45 -0800)]
win32: get rid of _gdk_screen global variable
The screen is part of the display so it should be belong to it.
Ignacio Casal Quinteiro [Fri, 15 Jan 2016 19:53:51 +0000 (11:53 -0800)]
win32: fix warning
Tom Schoonjans [Sun, 10 Jan 2016 04:07:07 +0000 (09:37 +0530)]
Windows library manager fix
The Makefile.am's had a dependency on incorrectly named libtool
archives for the generation of the .lib files.
https://bugzilla.gnome.org/show_bug.cgi?id=760388
Alberts Muktupāvels [Tue, 12 Jan 2016 19:34:56 +0000 (21:34 +0200)]
gtkwidgetpath: update gtk_widget_path_to_string
From gtk_widget_path_iter_set_object_name documentation:
"When set, the object name overrides the object type when matching CSS"
Update gtk_widget_path_to_string to match this behaviour.
Eric Williams [Wed, 13 Jan 2016 13:29:34 +0000 (08:29 -0500)]
Fix typo in previous documentation fix for gtk_css_provider_load_from_data()
Matthias Clasen [Thu, 14 Jan 2016 21:06:16 +0000 (16:06 -0500)]
Document -gtk-recolor syntax
Matthias Clasen [Thu, 14 Jan 2016 18:48:43 +0000 (13:48 -0500)]
Add a way to load recolored icons in CSS
This can come in handy to load images that are not in an icon theme,
but still benefit from symbolic recoloring.
https://bugzilla.gnome.org/show_bug.cgi?id=760536
Matthias Clasen [Thu, 14 Jan 2016 18:49:08 +0000 (13:49 -0500)]
icon theme: Export recoloring function
This will be used in subsequent commits.
https://bugzilla.gnome.org/show_bug.cgi?id=760536
Matthias Clasen [Thu, 14 Jan 2016 17:53:50 +0000 (12:53 -0500)]
icon theme: Add a way to create GtkIconInfos from files
This is sometimes needed, and calling into actual icon theme
code just for it is confusing - the resulting icon does not
depend on the icon theme at all.
https://bugzilla.gnome.org/show_bug.cgi?id=760536
Lapo Calamandrei [Thu, 14 Jan 2016 16:51:49 +0000 (17:51 +0100)]
Adwaita: pathbar style cleanup
Florian Müllner [Thu, 14 Jan 2016 13:45:28 +0000 (14:45 +0100)]
cssstyleproperty: Expose min-width/height
Lapo Calamandrei [Thu, 14 Jan 2016 15:26:22 +0000 (16:26 +0100)]
Adwaita: remove superfluous selector on keycap styling
now that keys are made directly with labels istead of frames.
Timm Bäder [Wed, 13 Jan 2016 18:24:46 +0000 (19:24 +0100)]
boxgadget: Don't use g_assert
Use g_return_if_fail instead so nothing abort()s.
Timm Bäder [Wed, 13 Jan 2016 18:14:33 +0000 (19:14 +0100)]
entry: Don't draw icons twice
Timm Bäder [Wed, 13 Jan 2016 18:11:24 +0000 (19:11 +0100)]
entry: Remove unused code
Timm Bäder [Wed, 13 Jan 2016 18:07:20 +0000 (19:07 +0100)]
label: Remove some unneeded conditionals
We are never passing NULL here.
Timm Bäder [Sat, 9 Jan 2016 16:15:29 +0000 (17:15 +0100)]
shortcutlabel: Use a label directly
We can everything we need without the frame around it now.
Руслан Ижбулатов [Sun, 27 Dec 2015 05:05:39 +0000 (05:05 +0000)]
GDK W32: Don't use WM-drawn shadow for tooltips
This prevents WM from drawing shadows around tooltip windows,
which, in Adwaita, should have no shadow and are CSD-ish (which means
that tooltip window is larger than it looks, and WM draws the shadow
only on the outside, leaving a gap between the visible tooltip edge and
the shadow).
https://bugzilla.gnome.org/show_bug.cgi?id=759898
Paolo Borelli [Thu, 17 Dec 2015 23:36:57 +0000 (00:36 +0100)]
win32: remove _gdk_root global variable
Руслан Ижбулатов [Thu, 14 Jan 2016 12:51:26 +0000 (12:51 +0000)]
Ensure that the fstat fix is not applied on x86_64
Matthias Clasen [Thu, 14 Jan 2016 12:33:04 +0000 (07:33 -0500)]
expander: center the arrow
In lieu of more sophisticated alignment, we need to at least
center the arrow allocation wrt to the label.
Руслан Ижбулатов [Thu, 14 Jan 2016 09:40:58 +0000 (09:40 +0000)]
W32: Ensure that correct statting function is used by iconcache
With Mingw-w64 fstat() can be an inline function that
calls _fstat32() or _fstat64(), depending on some macros.
And if LFS is enabled, fstat() is defined to turn into
_fstat32i64() or _fstat64(). And some/all of the above
might also be macros as well. Side-step all that mess
and excplicitly re-define fstat as _fstat32, which is
guaranteed to use a version of "stat" struct that
has 32-bit size and time fields, which is what we want.
https://bugzilla.gnome.org/show_bug.cgi?id=760615
Matthias Clasen [Thu, 14 Jan 2016 04:42:35 +0000 (23:42 -0500)]
font chooser: Add a CSS name
The CSS name for GtkFontChooserWidget is fontchooser.
Matthias Clasen [Thu, 14 Jan 2016 04:38:14 +0000 (23:38 -0500)]
app chooser: Set a CSS name
The CSS name for GtkAppChooserWidget is appchooser.
Matthias Clasen [Thu, 14 Jan 2016 04:37:08 +0000 (23:37 -0500)]
print dialog: Set a CSS name
The CSS name for GtkPrintUnixDialog is printdialog.
Matthias Clasen [Thu, 14 Jan 2016 04:35:22 +0000 (23:35 -0500)]
file chooser: Set a CSS name
The CSS name for GtkFileChooserWidget is ... filechooser.
Matthias Clasen [Thu, 14 Jan 2016 04:34:03 +0000 (23:34 -0500)]
color chooser: Set a CSS name
The CSS name for GtkColorChooserWidget is ... colorchooser.
Matthias Clasen [Thu, 14 Jan 2016 04:24:38 +0000 (23:24 -0500)]
inspector: Don't select 'randomly'
While rescanning the object tree, we were emitting ::object-selected
signals, possibly causing wild blinking in the application window.
Don't do that.
https://bugzilla.gnome.org/show_bug.cgi?id=760572
Matthias Clasen [Thu, 14 Jan 2016 04:06:32 +0000 (23:06 -0500)]
Expand CSS icon property docs a bit
Matthias Clasen [Thu, 14 Jan 2016 03:47:37 +0000 (22:47 -0500)]
Fix doc syntax
Matthias Clasen [Wed, 13 Jan 2016 21:25:41 +0000 (16:25 -0500)]
Improve docs for icon-related CSS properties
Clarify the relation between the various properties and the
icon loading functions.
Matthias Clasen [Wed, 13 Jan 2016 21:17:44 +0000 (16:17 -0500)]
Make -gtk-icontheme() use -gtk-icon-palette
This makes it possible to recolor themed icons with -gtk-icon-palette,
regardless whether they are loaded by the theme or the application.
Matthias Clasen [Wed, 13 Jan 2016 21:16:39 +0000 (16:16 -0500)]
Move the -gtk-icon-palette property up
Other properties will start depending on it in subsequent
commits, so move it up to prevent ordering problems.
Matthias Clasen [Wed, 13 Jan 2016 18:58:52 +0000 (13:58 -0500)]
color swatch: Use right allocation for window
Generally, input-only windows that correspond to CSS boxes
should be sized to the border allocation of the gadget.
Rafael Fontenelle [Wed, 13 Jan 2016 18:55:36 +0000 (18:55 +0000)]
Updated Brazilian Portuguese translation
Matthias Clasen [Wed, 13 Jan 2016 14:31:25 +0000 (09:31 -0500)]
Add css node tests for right-to-left levelbars
Cosimo Cecchi [Wed, 13 Jan 2016 16:30:02 +0000 (08:30 -0800)]
notebook: fix a GCC warning
Matthias Clasen [Wed, 13 Jan 2016 05:41:44 +0000 (00:41 -0500)]
Add css node tests for paned node ordering
Matthias Clasen [Wed, 13 Jan 2016 05:40:11 +0000 (00:40 -0500)]
paned: Update node ordering according to text direction
This was overlooked in the initial node conversion.
Matthias Clasen [Wed, 13 Jan 2016 05:39:53 +0000 (00:39 -0500)]
GtkBox: Documentation tweak
Matthias Clasen [Wed, 13 Jan 2016 05:26:48 +0000 (00:26 -0500)]
Update expected output of notebook css node test
The stack node is new.
Matthias Clasen [Wed, 13 Jan 2016 05:24:40 +0000 (00:24 -0500)]
notebook: Document the .dnd style class
We should aim to document all style classes that themes
can encounter during the normal operation of a widget.
Matthias Clasen [Wed, 13 Jan 2016 05:05:16 +0000 (00:05 -0500)]
Use convenience API that was introduced recently
Use gtk_css_gadget_set_state in all the places where we previously
were getting a node from a gadget, just to call gtk_css_node_set_state.
Matthias Clasen [Wed, 13 Jan 2016 05:01:14 +0000 (00:01 -0500)]
builtin icon: Don't save/restore cairo state
The reason why this was introduced is now handled in
gtk_css_stylke_render_icon since commit
0138af9f9684c0ec436b37e5962e9f82607d3ff8.
Matthias Clasen [Wed, 13 Jan 2016 04:57:35 +0000 (23:57 -0500)]
box gadget: Add some documentation
Matthias Clasen [Wed, 13 Jan 2016 04:40:28 +0000 (23:40 -0500)]
box: Document child node ordering
Dominique Leuenberger [Tue, 12 Jan 2016 08:29:00 +0000 (08:29 +0000)]
QEMU USB Tablet is not really a tablet - it's a trick
Unfortunately, Qemu gives us this confusing device to work with,
and the best we can do is filter it out based on its name.
https://bugzilla.gnome.org/show_bug.cgi?id=760445
Ting-Wei Lan [Mon, 11 Jan 2016 03:46:45 +0000 (11:46 +0800)]
broadway: Call setlocale in main function of broadwayd
It is required to correctly show translated messages on some locales.
https://bugzilla.gnome.org/show_bug.cgi?id=760416
Timm Bäder [Tue, 12 Jan 2016 20:37:27 +0000 (21:37 +0100)]
switch: Fix text positioning
https://bugzilla.gnome.org/show_bug.cgi?id=760509
Timm Bäder [Tue, 12 Jan 2016 20:36:37 +0000 (21:36 +0100)]
switch: Don't include margins in input window size
https://bugzilla.gnome.org/show_bug.cgi?id=760509
Timm Bäder [Tue, 12 Jan 2016 19:25:25 +0000 (20:25 +0100)]
modelbutton: Don't include margins in input window size
https://bugzilla.gnome.org/show_bug.cgi?id=760509
Timm Bäder [Tue, 12 Jan 2016 19:18:08 +0000 (20:18 +0100)]
button: Don't include margins in input window size
And do the same thing for GtkCheckButton
https://bugzilla.gnome.org/show_bug.cgi?id=760509
Timm Bäder [Fri, 8 Jan 2016 16:30:47 +0000 (17:30 +0100)]
entry: typo
Alberts Muktupāvels [Tue, 12 Jan 2016 07:51:26 +0000 (09:51 +0200)]
gdkseat: remove return from gdk_seat_ungrab
Timm Bäder [Tue, 12 Jan 2016 08:32:04 +0000 (09:32 +0100)]
Remove stray semicolon
Gets rid of a mixed code/declaration warning.
Matthias Clasen [Tue, 12 Jan 2016 04:20:26 +0000 (23:20 -0500)]
HighContrast: Fix selection in .views
Copy Adwaita fixes from
21a2fce8ba2a48fe3781e7a1f02b33e3a7bfd9ac.
Matthias Clasen [Tue, 12 Jan 2016 03:48:35 +0000 (22:48 -0500)]
Fix corner manipulation when growing rounded rects
This addresses problems with uneven border radius',
pointed out by Lapo.
Ben Iofel [Tue, 12 Jan 2016 00:13:30 +0000 (19:13 -0500)]
GTK Notebook: use the right enum type
Lapo Calamandrei [Tue, 12 Jan 2016 00:03:47 +0000 (01:03 +0100)]
Adwaita: popover style fixes
Lapo Calamandrei [Mon, 11 Jan 2016 23:16:12 +0000 (00:16 +0100)]
Adwaita: make selection visible in treeview derived widgets
See https://bugzilla.gnome.org/show_bug.cgi?id=757503
Hashem Nasarat [Mon, 11 Jan 2016 06:02:41 +0000 (01:02 -0500)]
Adwaita: fix separator margin in popovers
Commit
0b96b8a1 set margins via css, but accidentally changed the
semantics of margins for separators in popovers so that any separator
in a gtkpopover had a margin. This meant that the separators in
GtkListBoxes in popovers also had a margin around their separators, and
this is not what we want because it doesn't match separators in
listboxes not in popovers.
https://bugzilla.gnome.org/show_bug.cgi?id=760427
Matthias Clasen [Mon, 11 Jan 2016 20:09:47 +0000 (15:09 -0500)]
Improve deprecation note for gdk_device_manager_get_client_pointer
List gdk_seat_get_pointer as replacement. Suggested in
https://bugzilla.gnome.org/show_bug.cgi?id=759785
Matthias Clasen [Mon, 11 Jan 2016 20:06:15 +0000 (15:06 -0500)]
Fix the deprecation note for gdk_device_manager_list_devices
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=759785
Matthias Clasen [Mon, 11 Jan 2016 20:04:32 +0000 (15:04 -0500)]
Fix the annotation for gdk_seat_get_slaves
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=759785
Carlos Garnacho [Mon, 11 Jan 2016 19:06:14 +0000 (20:06 +0100)]
GtkWidget: Fix motion event consumption detection for touch-only gestures
If a GtkGestureSingle is set as touch-only, pointer events would be
discarded without giving an opportunity to the regular GtkGesture
handler to manage those.
Because the pointer events weren't actually managed by the gesture,
gtk_gesture_get_sequence_state() (rather unhelpfully here) will resort
to returning GTK_EVENT_SEQUENCE_NONE, which is in turn interpreted
by _gtk_widget_consumes_motion() as "may be handling the events for
this sequence", because gestures in this state presumably handle
the events, just that it's not "claimed" yet.
Instead, use gtk_gesture_handles_sequence(), which will perform the
expected check on the event sequence being managed, as we expect
here.
Matthias Clasen [Mon, 11 Jan 2016 18:58:37 +0000 (13:58 -0500)]
Actually deprecate GtkNotebook::has-tab-gap
Matthias Clasen [Mon, 11 Jan 2016 18:55:23 +0000 (13:55 -0500)]
notebook: Update CSS node docs
The stack node is new.
Benjamin Otte [Mon, 11 Jan 2016 16:52:38 +0000 (17:52 +0100)]
notebook: Don't reparent tab label when drag stops
Use the same unrealize + set_parent_window() trick that we used in
6d5edd18cf5637274762b7a51488d27d5bed600d when dragging starts.
Benjamin Otte [Mon, 11 Jan 2016 16:46:15 +0000 (17:46 +0100)]
notebook: Add .dnd style class to tabs during reorder
Benjamin Otte [Sat, 9 Jan 2016 13:25:26 +0000 (14:25 +0100)]
notebook: Don't unparent tab label for drag
When a tab drag starts, we need to move the tab label into the drag
window via gtk_widget_set_parent_window().
If we don't unparent, but just unrealize the widget, we don't lose the
cssnode position.
Benjamin Otte [Thu, 7 Jan 2016 14:54:58 +0000 (15:54 +0100)]
notebook: Don't limit motion notify framerate
We have a frameclock for that these days.
In particular, this limiting worked at 45fps when monitors are all 60fps.
Benjamin Otte [Thu, 7 Jan 2016 11:30:05 +0000 (12:30 +0100)]
notebook: Remove outdated style properties from themes
No replacement provided, the notebook will have to be redone anyway.
Benjamin Otte [Thu, 7 Jan 2016 11:28:24 +0000 (12:28 +0100)]
notebook: Don't store gadget allocation twice
If we care about a gadget's allocation, we can ask it. There's no need
to store it in GtkNotebookPage.allocation.
Benjamin Otte [Thu, 7 Jan 2016 11:21:25 +0000 (12:21 +0100)]
notebook: No need to recompute remaining space
The value is correct.
In particular, subtracting width on notebooks with tabs on left/right is
a very bad idea.
Benjamin Otte [Wed, 6 Jan 2016 16:41:41 +0000 (17:41 +0100)]
notebook: Port arrows to be gadgets
Also deprecate the arrow-spacing style property.
Benjamin Otte [Tue, 29 Dec 2015 18:31:04 +0000 (19:31 +0100)]
notebook: Pass full allocation instead of min and max value
Benjamin Otte [Tue, 29 Dec 2015 18:18:02 +0000 (19:18 +0100)]
notebook: Pass allocation as argument
... instead of querying it later.
Benjamin Otte [Tue, 29 Dec 2015 03:42:29 +0000 (04:42 +0100)]
notebook: Simplify allocation code
Benjamin Otte [Fri, 25 Dec 2015 22:44:08 +0000 (23:44 +0100)]
notebook: Identify existence of arrows differently
Instead of having gbooleans in the priv struct, just look at the
existence of priv->arrow_node[i].
Benjamin Otte [Fri, 25 Dec 2015 01:39:43 +0000 (02:39 +0100)]
notebook: Convert tab nodes to gadgets
The code does many bad things, so we get a lot of warning spew. Ignore
this for now, fixes will follow.
Benjamin Otte [Fri, 25 Dec 2015 01:12:15 +0000 (02:12 +0100)]
notebook: Assume tab allocations always change
This causes more redraws, but saves a bunch of code.
Benjamin Otte [Fri, 25 Dec 2015 00:27:22 +0000 (01:27 +0100)]
notebook: Remove weird hack where the current page was special-cased
I don't even know what it does, but it assumed that the current page was
always as large or larger than any other page. And that isn't true.
Benjamin Otte [Fri, 25 Dec 2015 00:19:31 +0000 (01:19 +0100)]
boxgadget: Handle css nodes
Automatically insert the cssnode into the box gadget's node's children at
the right place and remove it again when done.
Benjamin Otte [Thu, 24 Dec 2015 19:38:24 +0000 (20:38 +0100)]
notebook: Replace redraw_tabs() with gadget_queue_draw(tabs_gadget)
Benjamin Otte [Thu, 24 Dec 2015 19:34:54 +0000 (20:34 +0100)]
notebook: Don't queue redraw of tabs junction
There is no junction anymore, so don't try to redraw it.
Benjamin Otte [Thu, 24 Dec 2015 19:33:36 +0000 (20:33 +0100)]
gadget: Add queue_resize/allocate/draw() functions
Benjamin Otte [Thu, 24 Dec 2015 14:26:11 +0000 (15:26 +0100)]
notebook: Convert tabs node to a gadget
And in turn, convert the header gadget to a box gadget.
Benjamin Otte [Wed, 23 Dec 2015 03:09:30 +0000 (04:09 +0100)]
boxgadget: Add
Adds a GtkBoxGadget that is a Gadget that behaves like a GtkBox.
Use this gadget to implement the notebook base gadget.
Benjamin Otte [Wed, 23 Dec 2015 02:40:48 +0000 (03:40 +0100)]
notebook: Remove unused function call